package com.rcl.mvvmdemo.taobao

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.ViewModelProvider

class OnSellActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        val factory = ViewModelProvider.NewInstanceFactory()
        val viewModel = ViewModelProvider(this, factory).get(OnSellViewModel::class.java)
        //viewModel.loadContent()
        viewModel.loadDiscoveryPageCategories()
    }
}